icon-helper: don't reset pixel_size when clearing the helper
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 Nov 2011 23:15:05 +0000 (18:15 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 Nov 2011 23:15:05 +0000 (18:15 -0500)
Don't reset the pixel size when clearing the helper; pixel-size is e.g a
property of GtkImage, which is stable unless explicitly set.

gtk/gtkiconhelper.c

index 081e619fcd9bfa4976ce204a2123a31774136122..46724f9197b79f0342c719c93a6e3c99afdb735e 100644 (file)
@@ -66,7 +66,6 @@ _gtk_icon_helper_clear (GtkIconHelper *self)
 
   self->priv->storage_type = GTK_IMAGE_EMPTY;
   self->priv->icon_size = GTK_ICON_SIZE_INVALID;
-  self->priv->pixel_size = -1;
   self->priv->last_rendered_state = GTK_STATE_FLAG_NORMAL;
 }